$(function(){
    //顶部选中
    headerActive()
    $(document).on("dragstart", function() {
        return false;
    });
})

function headerActive() {
    var nav = $('a[href="' + location.pathname + '"]');
    if (nav.length == 0) return;
    nav.addClass("active");
}